package com.zh.listener;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;


/**
 * 监听器
 */
@Configuration
@RabbitListener(queues = "test-woman-topic-queue") //监听队列的名称
public class TopicWoManReceiver {

    @RabbitHandler
    public void processDirect(String json){
        System.out.println("topic监听消息===woman====："+json);
    }
}
